<template>
  <!-- <div class="app"></div> -->
  <router-view></router-view>
</template>
 
<script lang='ts' setup>
import { getQueryString } from "./utils/utils.js";
import { useRouter, useRoute } from "vue-router";
import Cookies from "js-cookie";

const route = useRoute();
const router = useRouter();
let code = getQueryString("code");
// console.log(
//   "route",
//   route,
//   sessionStorage.getItem("jxrs_pc_token"),
//   route.path
// );

if (!code && !sessionStorage.getItem("jxrs_pc_token")) {
  if (import.meta.env.VITE_APP_ENV == "develpoment") {
    sessionStorage.setItem(
      "jxrs_pc_token",
      "9d2d246c-1c78-4365-8194-302a926f83c5"
    );
  } else router.replace("/h5/index");
}
</script>
 
 
<style scoped></style>